package spring.framework.context.event;

import spring.framework.context.ApplicationEvent;
import spring.framework.context.ApplicationListener;

/**
 * @author pengzh
 * @desc 发布事件
 * @class ApplicationEventMulticaster
 * @since 2021-10-25
 */
public interface ApplicationEventMulticaster {

    void addApplicationListener(ApplicationListener<?> listener);

    void removeApplicaitonListener(ApplicationListener<?> listener);

    void multicastEvent(ApplicationEvent event);

}
